package com.car.carmgr.service;

import com.car.carmgr.bean.BaseStat;
import com.car.carmgr.bean.Customer;
import com.github.pagehelper.PageInfo;

import java.util.Date;
import java.util.List;

public interface CustomerService {

    int insertCustomer(Customer customer);

    int deleteCustomerById(Integer customerId);

    int updateCustomer(Customer customer);

    /**
     * 查询客户
     */
    PageInfo<Customer> findCustomerByWhere(String identity, String customerName, Integer sex, String address, String phone, String career, Date createTime, Integer page, Integer limit);

    Integer getCountByWhere(String identity, String customerName, Integer sex, String address, String phone, String career, Date createTime);

    int deleteSomeCustomer(String [] split);

    int findCustomerById(String identity);

    List<BaseStat> getCountByAddress();
}
